<?php

class Message_Plugin_Menu
{
	/**
	 * @param array $item
	 * @return array|NULL
	 */
	function inbox($item)
	{
		$user = Nuo::getUser();

		if ($user -> isMember())
		{
			$item['type'] = 'html';
			$item['html'] = Nuo::getView() -> render('message/view/plugin/menu/inbox', array('user' => $user));

			return $item;
		}
	}

}